package cn.kuporo.seckill.common.model.event;

import cn.kuporo.seckill.common.model.message.TopicMessage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: kuporo
 * @since: 2025/7/9
 * @description: 事件基础模型
 */
@Data
@NoArgsConstructor
@Builder
public class SeckillBaseEvent extends TopicMessage {
    private Long id;
    private Integer status;
    private String topicEvent;

    public SeckillBaseEvent(Long id, Integer status, String topicEvent) {
        super(topicEvent);
        this.id = id;
        this.status = status;
    }
}
